<h1>{{unitGroup.name}}

  <clr-dropdown>
    <button type="button"
            class="btn btn-outline-primary btn-link"
            clrDropdownTrigger>
      操作
      <clr-icon shape="caret down"></clr-icon>
    </button>
    <clr-dropdown-menu *clrIfOpen>
      <label class="dropdown-header">选项</label>
      <clr-dropdown>
        <button type="button"
                clrDropdownTrigger>选择</button>
        <clr-dropdown-menu>
          <button type="button"
                  (click)="select(bug)"
                  clrDropdownItem
                  *ngFor="let bug of bugs;trackBy getBugId">
            {{utility.getBugName(bug) }}
          </button>
        </clr-dropdown-menu>
      </clr-dropdown>
      <clr-dropdown>
        <button type="button"
                clrDropdownTrigger>添加到选项</button>
        <clr-dropdown-menu>
          <button type="button"
                  (click)="selectAdd(bug)"
                  clrDropdownItem
                  *ngFor="let bug of bugs;trackBy getBugId">
            {{utility.getBugName(bug) }}
          </button>
        </clr-dropdown-menu>
      </clr-dropdown>
      <clr-dropdown>
        <button type="button"
                clrDropdownTrigger>取消选择</button>
        <clr-dropdown-menu>
          <button type="button"
                  (click)="selectRemove(bug)"
                  clrDropdownItem
                  *ngFor="let bug of bugs;trackBy getBugId">
            {{utility.getBugName(bug) }}
          </button>
        </clr-dropdown-menu>
      </clr-dropdown>

    </clr-dropdown-menu>
  </clr-dropdown>

</h1>
<clr-tabs>

  <clr-tab>
    <button clrTabLink
            id="link1">概览</button>
    <clr-tab-content id="content1"
                     *clrIfActive="ms.overviewTaActive">
      <app-unit-group *ngIf="unitGroup"
                      [unitGroup]="unitGroup"></app-unit-group>
    </clr-tab-content>
  </clr-tab>

  <clr-tab *ngIf="ms.game.tabs.autoBuy.unlocked">
    <button clrTabLink>自动购买者</button>
    <clr-tab-content *clrIfActive="ms.prestigeTaActive">
      <app-group-auto-buy [unitGroup]="unitGroup"></app-group-auto-buy>
    </clr-tab-content>
  </clr-tab>

</clr-tabs>
